#pragma once

#include <string>
#include <memory>

#include "gui/defaultdefines.h"
#include "gui/formlayout.h"
#include "gui/guimessage.h"
#include "gui/layout.h"
#include "gui/widget.h"


class Panel:public Widget{
    public:
        Panel(int direction = HORIZONTAL);
        virtual std::string GetType(){ return "Panel"; }

        virtual void AddChild(std::unique_ptr<Widget> child);
    private:
        std::unique_ptr<Layout> layout;
};

